Since part of the VMX guest initialization is running in the context of
dom0, so when we want to make sure the operation of shadow ops is
always done by vcpu0 of the guest VMX domain, we should make sure
the current vcpu0 is running in guest domain and not in the dom0.
Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
* Need to wait for VCPU0 to complete the on-going shadow ops.
*/
- if ( v->vcpu_id )
+ if ( v->domain == d && v->vcpu_id )
return 1;
shadow_lock(d);